﻿#include "tools.h"
#include <QStandardPaths>
#include <QDateTime>

Q_GLOBAL_STATIC(Tools, tools)

Tools *Tools::instance()
{
    return tools;
}

QString Tools::getHomeDir()
{
    QString DesktopLocation = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
    QString strSaveFile = "/"+QString::number(QDateTime::currentSecsSinceEpoch())+".txt";
    DesktopLocation += strSaveFile;
    return DesktopLocation;
}
